function loadXMLData(obj,node)

% This file is part of CISNE.
%
%     CISNE is free software: you can redistribute it and/or modify
%     it under the terms of the GNU General Public License as published by
%     the Free Software Foundation, either version 3 of the License, or
%     any later version.
%
%     CISNE is distributed in the hope that it will be useful,
%     but WITHOUT ANY WARRANTY; without even the implied warranty of
%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%     GNU General Public License for more details.
%
%     You should have received a copy of the GNU General Public License
%     along with CISNE.  If not, see <http://www.gnu.org/licenses/>.

% Copyright 2013. Jose Maria Garcia-Valdecasas Bernal

childNodes=node.getChildNodes();
for j=0:childNodes.getLength()-1
    name=char(childNodes.item(j).getNodeName());
    switch name
        case 'Input_Grids'
            %mallas de entrada
            obj.loadInputGrid(childNodes.item(j));
        case 'Comp_Grids'
            %mallas computacionales
            %parent = 'NONE' -> raiz.
            obj.loadCompGrid(childNodes.item(j),'NONE');
        case 'Control_Points'
            %puntos de control
            obj.loadControlPoint(childNodes.item(j));
    end
end
